package com.zyh.exception;
import com.zyh.type.CodeStatusEnum;
import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException {

    private final CodeStatusEnum code;

    public BusinessException(CodeStatusEnum code) {
        super(code.getMessage());
        this.code = code;
    }
}
